package com.flesler.stickjoy.controller
{
	import flash.events.Event;
	import flash.events.EventDispatcher;

	internal class BaseControllerComponent extends EventDispatcher
	{
		private var _key:String;
		
		public function BaseControllerComponent(key:String)
		{
			_key = key;
		}
		
		public function get key():String
		{
			return _key;
		}
		
		protected function changed():void
		{
			dispatchEvent(new Event(Event.CHANGE));
		}
		
		public function destroy():void
		{
			dispatchEvent(new Event(Event.UNLOAD));
		}
	}
}